// ConfigManager.cpp
void ConfigManager::loadConfig(const std::string& filename) {
    std::ifstream configFile(filename);
    json config;
    configFile >> config;
    
    logPath = config["logging"]["path"];
    dbConfig = config["database"];
    // 其他配置项...
}